package com.yjd.bi.promotion.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.bi.promotion.model.SpreaderStatisticsModel;

/**
 * <b>description</b>：人人推广统计表业务接口<br>
 * <b>time</b>：2016-06-07 15:25:25 <br>
 * <b>author</b>：  chenpengfei@yijeidai.com
 */
public interface ISpreaderStatisticsService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public SpreaderStatisticsModel insert(SpreaderStatisticsModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(SpreaderStatisticsModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;

}
